﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace webui.ViewModel
{
    public class V_Userinfo
    {
        public int id { get; set; }
        [Required]
        [DisplayName("登录名")]
        [StringLength(15, MinimumLength = 4)]
        public string loginname { get; set; }

        [Required]
        [StringLength(32, MinimumLength = 4)]
        [DisplayName("密码")]
        public string pwd { get; set; }


        [DisplayName("性别")]
        public bool gender { get; set; }

        [StringLength(35)]
        [DisplayName("备注")]
        public string remark { get; set; }

        [DisplayName("昵称")]
        public string username { get; set; }
        public bool isDel { get; set; }
        public System.DateTime addtime { get; set; }

        [DisplayName("所属角色")]
        public int roleid { get; set; } //角色ID

        [DisplayName("所属店铺")]
        public int Shopid { get; set; } //角色ID

        [DisplayName("可下次数")]
        public int downNum { get; set; } //角色ID
        public string rolename { get; set; }
    }
}